package main

import (
	"./Cryptointerface"
	"fmt"
)

func main12(){

	var  yc  Cryptointerface.ServerCrypto //加密接口
	yc=Cryptointerface.NewYinchengServerCrypto([]string{"crc64","sha512"},30,"C:\\Users\\Tsinghua-yincheng\\Documents\\oCam\\")
	newvalue:=yc.ToCryptoString("12323")
	fmt.Println(newvalue)
	fmt.Println(yc.GetPassword())



}

func main(){
	cdata:="97b93141445cc67dfe5ff25d4a1151655cfaa5631e3b61011827fd90ce3c26dcc6b5f06ef9840d2c5541c9c2a835585c1cca7b7377e256ea5c41e2fff4194fde32854ffe8b13f794ab66b29c06e5ebde0e7eaa35d7014c2053fea88ba8cf66eec591ba829bd23bdf10f0b31418545f36906a882030ec3c8e6db5063f2a7eb404c509c353c6d0308f#$#109149162854292083819904076316319530464206153071089894952379358610354571651736#$#85000416104561192198631616557242915624921604593373254453882866005326151662120"
	password:="7De6HQlCSgHRFb5WoxfmHki2SHeGSr"
	hash:=[]string{"crc64","sha512"}
	pubkeypath:="C:\\Users\\Tsinghua-yincheng\\Documents\\oCam\\pub.pem"
	var  yc  Cryptointerface.ClientCrypto//加密接口
	yc=Cryptointerface.NewYinchengClientCrypto(hash,password,pubkeypath)
	newvalue,ok:=yc.GetResultString(cdata)
	fmt.Println(newvalue,ok)


}
